<div class="row container">
<div class="col-md-12"> 
<div class="panel panel-warning">
	
	<div class="panel-heading">
	   <a href="<?php echo $this->url('resources',array('controller'=>'Additional','action'=>'add'));?>" class="btn btn-info" role="button"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Additional Resources &raquo;</a>
	   <!-- <a href=" --><?php // echo $this->url('resources',array('controller'=>'Additional','action'=>'search'));?><!-- " class="btn btn-info pull-right" role="button"><span class="glyphicon glyphicon-search" aria-hidden="true"></span> Search &raquo;</a> -->
	</div>
	
	<div class="panel-body">
	<div class="table-responsive">
		<table class="table table-bordered table-striped">
				<tr>
				    <th>No</th>
				    <th>Title</th>
					<th>Duration (Hrs:Min:Sec)</th>					
				    <th>Remark</th>
				    <th>Option</th>
				</tr>
				<?php $number=0;?>
				<?php foreach ($this->paginator as $additional) : ?>
				<tr>       	
				            <td><?php echo ++$number?></td>
				            <td><?php echo $this->escapeHtml($additional->TITLE); ?></td>		
        			        <td><?php echo gmdate("H:i:s",$additional->DURATION); ?></td>
        			        <td><?php echo $this->escapeHtml($additional->REMARK);?></td>       					
        					<td>
                                 <div class="btn btn-default"><a href="<?php echo $this->url('resources',array('controller'=>'Additional','action'=>'edit', 'id' => $additional->ID));?>"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></a></div>
                                 
                            </td>	        			
        		</tr>
        		<?php endforeach; ?>
		</table>
		<?php 
    		// add at the end of the file after the table
            echo $this->paginationControl(
            // the paginator object
            $this->paginator,
            // the scrolling style
            'sliding',
            // the partial to use to render the control
            'partial/paginator.phtml',
            // the route to link to when a user clicks a control link
            array(
               // 'route' => 'events'
                )
            );
         ?>
		
	</div>
	</div>
	<div class="pull-right" style="padding:0.2em 0 0 0.2em"><a href="<?php echo $this->url('resources',array('controller'=>'Additional','action'=>'email'));?>" class="btn btn-info" role="button"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> Email &raquo;</a></div>
	<div class="pull-right" style="padding:0.2em 0 0 0.2em"><a class="btn btn-info" role="button" onclick="window.print()" target="_blank"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Print	&raquo;</a></div>
</div>
</div>
</div>
